package chapter_8;

public class Sun<T> extends Son2<T>{
    private T t;
    private T t2;

    public Sun(T t,T t2){
        this.t = t;
        this.t2 = t2;
    }
    public Sun(){
    }
    public  void printt1(){
        System.out.println(t);
    }
    public  void printt2(){
        System.out.println(t2);
    }

    public static void main(String[] args) {
        Sun<String> sun = new Sun<>("hello","world");
        sun.printt1();
        sun.printt2();
        Sun<Boolean> sun1 = new Sun<>(true,true);
        sun1.printt2();
        sun1.printt1();
    }
}
